commit | ebb3e2030fc65d9369dbe8c2f9003bb342e8ca67 | [log] [tgz] |
---|---|---|
author | Michael Butler <butlermichael@google.com> | Mon Nov 14 19:00:25 2022 -0800 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Mon Jan 16 07:12:45 2023 +0000 |
tree | 7d2cb28b60fe5f3d63d8fd7bca558f62ab682027 | |
parent | 08b4da23325d3a0d64f3c60362f2ea2a7f3913ec [diff] |
Add additional bounds checks to NNAPI FMQ deserialize utility functions This CL adds the following additional bounds checks: * Adds additional checks of the index of the std::vector before accessing the element at the index * Changes the array index operator [] to the checked std::vector::at method Bug: 256589724 Test: mma Merged-In: I6bfb02a5cd76258284cc4d797a4508b21e672c4b Change-Id: I6bfb02a5cd76258284cc4d797a4508b21e672c4b (cherry picked from commit 9b17e6485b12e20cd73c4b0b71e5798e608a177a) Merged-In: I6bfb02a5cd76258284cc4d797a4508b21e672c4b